package com.zslibrary.Enum;

import androidx.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

public class ComponentClassDefine {
    public static final int C_CONTAINER   	            =50*100;// cannister_x
    public static final int C_MIXER_X				    =51*100; // mixer_x
    public static final int C_TRANSFER                  =52*100;//transfer
    public static final int C_CUP_DISPENSER		        =53*100;// cup_dispenser
    public static final int C_BOILER	                =54*100;// boiler
    public static final int C_WATER_SYS			        =55*100;//  water_sys
    public static final int C_SEALER			        =56*100;//  sealer
    public static final int C_GRINDER_X                 =57*100;// grinder_x
    public static final int C_BEVERAGE_TABLE            =58*100;//
    public static final int C_BUFFER           	        =59*100;// powder_gate
    public static final int C_CANNISTER_X             	=60*100; // container
    public static final int C_DOOR      		        =61*100;// door
    public static final int C_LID_DISPENSER_X           =62*100;//
    public static final int C_AUXILIARY                 =20*100;

    public static final int COMPONENT_NUM  =14;
    @IntDef({
            C_CONTAINER,
            C_MIXER_X,
            C_TRANSFER,
            C_CUP_DISPENSER,
            C_BOILER,
            C_WATER_SYS,
            C_SEALER,
            C_GRINDER_X,
            C_BEVERAGE_TABLE,
            C_BUFFER,
            C_CANNISTER_X,
            C_DOOR,
            C_LID_DISPENSER_X,
            C_AUXILIARY,
    })

    @Retention(RetentionPolicy.SOURCE)
    public @interface ComponentId{}

    public static int[] getAllComponent(){
        int[] ret={C_CONTAINER,C_MIXER_X,C_TRANSFER,C_CUP_DISPENSER,
                C_WATER_SYS,C_SEALER,C_GRINDER_X,C_BEVERAGE_TABLE,C_BUFFER,
                C_CANNISTER_X,C_AUXILIARY,C_LID_DISPENSER_X};
        return ret;
    }
}
